package com.meilai.project.controller.web.report.vo;

import com.meilai.project.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * @author xchen
 * @since 2022-04-09
 */
@Data
@ApiModel
public class WeekDetailCustomerExt {
	@ApiModelProperty("开始日期")
	private LocalDate beginDate;
	@ApiModelProperty("结束日期")
	private LocalDate endDate;
	@ApiModelProperty("客户ID")
	private Long customerId;
	@ApiModelProperty("客户名称")
	private String customerName;
	@ApiModelProperty("占用数量")
	private Integer occupyCount;

	public String getDateRangeDesc() {
		return DateUtil.formatDate(beginDate) + "-" + DateUtil.formatDate(endDate);
	}
}
